package com.chain.BrotherExchange.data.model;

import java.util.Collections;
import java.util.List;

public class BannerList extends BaseResponseModel<BannerList.DataBean> {

    /**
     * 创建空广告图
     */
    public static List<BannerList.DataBean.ListBean> emptyBanner() {
        BannerList success = new BannerList().success("");
        success.setData(new DataBean(Collections.singletonList(new DataBean.ListBean(""))));
        return success.getData().getList();
    }

    public static class DataBean {
        private List<ListBean> list;

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public DataBean() {
        }

        public DataBean(List<ListBean> list) {

            this.list = list;
        }

        public static class ListBean {
            public ListBean(String picturePath, String linkPath) {

                this.picturePath = picturePath;
                this.linkPath = linkPath;
            }

            /**
             * order : 2
             * pictureName : banner2
             * picturePath : https://sdun.oss-cn-shenzhen.aliyuncs.com/e622ea8bc5fbc66041ee311456448e07.png
             * timeStart : 2018-08-20 15:46:47
             * timeEnd : 2018-08-20 15:46:47
             * linkPath : https://www.baidu.com/
             */

            private int order;
            private String pictureName;
            private String picturePath;
            private String timeStart;
            private String timeEnd;
            private String linkPath;

            public ListBean() {
            }

            public ListBean(String picturePath) {

                this.picturePath = picturePath;
            }

            public int getOrder() {
                return order;
            }

            public void setOrder(int order) {
                this.order = order;
            }

            public String getPictureName() {
                return pictureName;
            }

            public void setPictureName(String pictureName) {
                this.pictureName = pictureName;
            }

            public String getPicturePath() {
                return picturePath;
            }

            public void setPicturePath(String picturePath) {
                this.picturePath = picturePath;
            }

            public String getTimeStart() {
                return timeStart;
            }

            public void setTimeStart(String timeStart) {
                this.timeStart = timeStart;
            }

            public String getTimeEnd() {
                return timeEnd;
            }

            public void setTimeEnd(String timeEnd) {
                this.timeEnd = timeEnd;
            }

            public String getLinkPath() {
                return linkPath;
            }

            public void setLinkPath(String linkPath) {
                this.linkPath = linkPath;
            }
        }
    }

}
